package com.fortune.controller;

import java.util.List;

import com.fortune.service.DSalesmanSettingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.fortune.base.BaseAPIExcution;
import com.fortune.dto.in.dSalesmanSetting.DSalesmanSettingAddDto;
import com.fortune.dto.in.dSalesmanSetting.DSalesmanSettingEditDto;
import com.fortune.vo.dSalesmanSetting.DSalesmanSettingInfo;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(value = "dSalesmanSetting", description = "经销商业务员业绩设置", tags = {"经销商业务员业绩设置"})
@RestController
@RequestMapping("dSalesmanSetting")
public class DSalesmanSettingController {
	@Autowired
	private DSalesmanSettingService dSalesmanSettingService;

	@ApiOperation(value = "业绩设置列表", nickname = "dSalesmanSettingList", notes = "", tags={ "@岳希伟" })
    @GetMapping(value = "list",
        produces = { MediaType.APPLICATION_JSON_VALUE })
	public BaseAPIExcution<List<DSalesmanSettingInfo>> list() {
		List<DSalesmanSettingInfo> list = dSalesmanSettingService.findDSalesmanSettingList();
		return null;
	}
	@ApiOperation(value = "添加业绩设置", nickname = "dSalesmanSettingAdd", notes = "", tags={ "@岳希伟" })
    @PostMapping(value = "add",
        produces = { MediaType.APPLICATION_JSON_VALUE },
        consumes = { MediaType.APPLICATION_JSON_VALUE })
	public BaseAPIExcution<Void> add(@Validated @RequestBody DSalesmanSettingAddDto addDto) {
		return null;
	}
	
	@ApiOperation(value = "编辑业绩设置", nickname = "dSalesmanSettingEdit", notes = "", tags={ "@岳希伟" })
    @PutMapping(value = "edit",
        produces = { MediaType.APPLICATION_JSON_VALUE },
        consumes = { MediaType.APPLICATION_JSON_VALUE })
	public BaseAPIExcution<Void> edit(@Validated @RequestBody DSalesmanSettingEditDto editDto) {
		return null;
	}
}
